package guiTest;

import javax.swing.ListSelectionModel;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;

public class MusicTableListener implements ListSelectionListener 
{
	private GUI_Creator parent;
	
	public MusicTableListener(GUI_Creator gc)
	{
		parent = gc;
	}
	
	@Override
	public void valueChanged(ListSelectionEvent e) 
	{
		ListSelectionModel lsm = (ListSelectionModel) e.getSource();
		parent.respond();
        //parent.respond(lsm.getAnchorSelectionIndex());		
	}
}
